package com.twh.www.mapper;

import com.twh.www.entity.WnAdmin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.twh.www.entity.WnUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface WnAdminMapper extends BaseMapper<WnAdmin> {
    WnAdmin getAdminByAccount(@Param("account") String account);

    List<WnUser> getAllUser();

    List<WnAdmin> getAllAdmin();

    int updateAdminStatus(@Param("id") Integer id, @Param("status") String status);

    int deleteAdmin(@Param("id") Integer id);


    int updateAdminAccount(WnAdmin admin); // 新增


    int updateAdminPassword(WnAdmin admin); // 新增
}






